<?php
class Layout 
{
	public static function header()
	{
?>
			<link <?php print "href='".Styling::bootstrapCSS."'";?> type="text/css" rel="stylesheet">
			<link <?php print "href='".Styling::bootstrapResponsiveCSS."'";?> type="text/css" rel="stylesheet">
			<script <?php print "src='".Styling::jquery."'";?> type="text/javascript"></script>
			<script <?php print "src='".Styling::bootstrapJS."'";?> type="text/javascript"></script>
			
	    	<style type="text/css">
		      body {
		        padding-top: 20px;
		        padding-bottom: 40px;
		      }
		      .container-narrow {
		        margin: 0 auto;
		        max-width: 700px;
		      }
		      .container-narrow > hr {
		        margin: 30px 0;
		      }
		      .jumbotron {
		        margin: 60px 0;
		        text-align: center;
		      }
		      .jumbotron h1 {
		        font-size: 64px;
		        line-height: 1;
		      }
		      .jumbotron .btn {
		        font-size: 21px;
		        padding: 14px 24px;
		      }
		      .marketing {
		        margin: 60px 0;
		      }
		      .marketing p + h4 {
		        margin-top: 28px;
		      }
		      h3 > a {
		      	text-decoration: none;
		      	cursor: pointer;
		      }
		      h3 > a:hover {
				text-decoration: none;
		      	cursor: pointer;
		      }
		    </style>

<?php
	}

	public function masthead($pageTitle, $pageTitleLink, $navLinks, $activeName)
	{
?>
		<div class="masthead">
	        	<ul class="nav nav-pills pull-right">
	        		<?php
		        		$n = count($navLinks);
		        		foreach ($navLinks as $name=>$link)
		        		{
		        			print "<li ";
		        			$cls = "class='$name";
		        			if ($name == $activeName) { $cls = $cls . " active' ";}
		        			else { $cls = $cls ."' ";}
		        			print "$cls><a href=\"$link\">$name</a></li>\n";
		        		}
	        		?>
	        	</ul>
	        	<h3>
	        		<?php 
	        			if ($pageTitleLink != "") { print "<a href=\"$pageTitleLink\">"; }
	        			print $pageTitle;
	        			if ($pageTitleLink != "") { print "</a>"; }
	        		?>
	        	</h3>
	     </div>
<?php
	}

	
}

?>
